<template>
  <div class="has-notice" id="has-notice">
    <a-tabs default-active-key="1" @change="callback">
      <a-tab-pane key="1" tab="我接收的公告" :style="{ fontSize: 22 + 'px' }">
        我接收的公告
      </a-tab-pane>
    </a-tabs>
    <div class="release-notice">发布公告</div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    callback(key) {
      console.log(key);
    },
  },
};
</script>
<style lang="less" scoped>
.has-notice {
  position: relative;
}
.release-notice {
  position: absolute;
  right: 20px;
  top: 5px;
  height: 36px;
  width: 100px;
  line-height: 36px;
  text-align: center;
  border-radius: 3px;
  font-size: 15px;
  color: #fff;
  background-color: #00796a;
  box-shadow: 1px 1px 5px 0px #00796a;
  cursor: pointer;
}
</style>